/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface;

import Pojo.Organization;
import java.util.List;
import org.hibernate.Session;

/**
 *
 * @author olegk
 */
public interface InterfaceOrganization {
    public boolean register(Session session, Organization organization) throws Exception;
    public List<Organization> getAll(Session session) throws Exception;
    public Organization selectOrganizationName(Session session, String hql, List<Object> param)throws Exception;
    public List<Organization> selectListOrganizationName(Session session, String hql, List<Object> param)throws Exception;    
    public boolean update(Session session, Organization organization) throws Exception;
    public boolean delete(Session session, Organization organization) throws Exception;
}
